package org.jeese.modules.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeese.modules.sys.entity.SysUser;
@Mapper
public interface SysUserDao {

	int addUser(SysUser user);

	int editUser(SysUser user);

	int deleteUser(@Param("userId") Long userId);

	int beachDeleteUser(@Param("userIds") String[] userIds);

	int editUserPassword(@Param("userId") Long userId, @Param("password") String password);

	int editUserStatus(@Param("userId") Long userId, @Param("status") Integer status);

	int beachEnableUser(@Param("userIds") String[] userIds);

	int beachDisableUser(@Param("userIds") String[] userIds);

	int editUserLoginInfo(@Param("userId") Long userId, @Param("ip") String ip);

	List<Long> getUserMenuId(@Param("userId") Long userId);

	SysUser getByName(@Param("name") String name);

	SysUser getByAccount(@Param("account") String account);

	List<Long> getAdminMenuId();

	SysUser getUserById(@Param("userId") Long userId);

}
